{% extends "base_logged.html" %}
{% block content %}

{% if erro  %}<p><strong> Error List:<br>{{ erro }} </strong></p><br>{% endif %}

<form action="/mails/create" method="post">
{% csrf_token %}
<table>
{{ form }}
<!-- <tr> -->
<!-- <td>Sender</td> -->
<!-- <td><input type="text" name="sender" value="{{ dmail.sender }}" ></td> -->
<!-- </tr> -->
<!-- <td>Receiver</td> -->
<!-- <td><input type="text" name="receiver" value="{{ dmail.receiver }}"></td> -->
<!-- </tr> -->
<!-- </tr> -->
<!-- <td>Subject</td> -->
<!-- <td><input type="text" name="subject" value="{{ dmail.subject }}"></td> -->
<!-- </tr> -->
<!-- </tr> -->
<!-- <td>Body</td> -->
<!-- <td><input type="text" name="body" value="{{ dmail.body }}"></td> -->
<!-- </tr> -->
<td><input type="hidden" name="id" value="{{ dmail.id }}"></td>
<td><input type="submit" value="Send Dmail"></td>
</table>
</form>

{% endblock %}
